home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
wcolor.zip
/
WBA.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-06-01
|
763b
|
31 lines
@echo off
if "%1" == "" goto ERROR
if "%2" == "" goto ERROR
if "%2" == "*.*" goto REPEAT
if "%2" == "." goto REPEAT
wcolor -ib%1 -oa%2 -d%3
goto CHECK
:REPEAT
wcolor -ib%1 -oa%1 -d%3
:CHECK
if errorlevel 0 goto EXIT
goto ERROR
:ERROR
echo .
echo Batch format is "wba bbs_in_file ansi_out_file [speed]"
echo --} eg. "wba mainh.bbs mainh.scr 2400".
echo .
echo This example will display "mainh.bbs" at roughly 2400 baud, and resave it
echo in file "mainh.scr" - optimized! Leaving "speed" blank is equivalent to
echo entering "0".
echo .
echo Input and output file names may be unique to prevent overwriting original.
echo For the output file name, "*.*" or "." may be used to retain input file
echo name.
echo .
:EXIT